package cn.mw.cmdb.template.entity.convert;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.List;

/**
 * @description zabbix模板数据转换实体
 */
@Getter
@Setter
@Schema(name = "MwTemplateZabbixConvertDto", description = "zabbix模板数据转换实体")
public class MwTemplateZabbixConvertDto implements Serializable {

    private static final long serialVersionUID = 1L;

    private String templateid;
    private String name;
    private String hosts;
    private List<ParentTemplatesDto> parentTemplates;
    private List<ChildTemplatesDto> templates;
    private String triggers;
    private String items;
    private String discoveries;
    private String graphs;
    private String httpTests;
    private List<TagDto> tags;
    private String dashboards;
    private String applications;
    private List<GroupDto> groups;

    @Getter
    @Setter
    @Schema(name = "GroupDto", description = "主机群组实体")
    public class GroupDto{
        private String groupid;
        private String name;
    }

    @Getter
    @Setter
    @Schema(name = "ParentTemplatesDto", description = "链接的父模板")
    public class ParentTemplatesDto{
        private String templateid;
    }

    @Getter
    @Setter
    @Schema(name = "ChildTemplatesDto", description = "链接的子模板")
    public class ChildTemplatesDto{
        private String templateid;
    }

    @Getter
    @Setter
    @Schema(name = "TagDto", description = "标记")
    public class TagDto{
        private String tag;
        private String value;
    }
}
